/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rpt.bd.cenario;

import javax.swing.JTabbedPane;

/**
 *
 * @author Roberto
 */

public class CFabricaCenarioBd {

    public CFabricaCenarioBd() {
        super();
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    static public CCenarioBdEdicao criarCenario(
        CGlobal aGlobal,
        String aTitulo,
        int aTipoDialogoBd,
        CPainelBdCenarioEdicao aPainelBd,
        JTabbedPane aPainelTabulador) {
        return
            new CCenarioBdEdicao(
                aTitulo,
                aGlobal,
                aTipoDialogoBd,
                aPainelBd,
                aPainelTabulador
            );
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    static public CCenarioBdEdicao criarCenario(
        CGlobal aGlobal,
        String aTitulo,
        JTabbedPane aPainelTabulador,
        CPainelBdCenarioEdicao aPainelBd,
        int aTipoDialogoBd,
        int[] aValoresIdMestre,
        CPersistenciaBdCenario aPertinenciaBdMestre,
        String[] aNomesCampoMestre,
        String[] aNomesCampoDetalhe,
        String[] aComparacoes) {
        //
        return
            new CCenarioBdEdicao(
                aTitulo,
                aGlobal,
                aPainelTabulador,
                aPainelBd,
                aTipoDialogoBd,
                aValoresIdMestre,
                aPertinenciaBdMestre,
                aNomesCampoMestre,
                aNomesCampoDetalhe,
                aComparacoes,
                null,
                null
            );
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    static public CCenarioBdEdicao criarCenario(
        CGlobal aGlobal,
        String aTitulo,
        JTabbedPane aPainelTabulador,
        CPainelBdCenarioEdicao aPainelBd,
        int aTipoDialogoBd,
        int[] aValoresIdMestre,
        CPersistenciaBdCenario aPertinenciaBdMestre,
        String[] aNomesCampoMestre,
        String[] aNomesCampoDetalhe,
        String[] aComparacoes,
        String[] aNomesCampoMestreHeranca,
        String[] aNomesCampoDetalheHeranca) {
        //
        return
            new CCenarioBdEdicao(
                aTitulo,
                aGlobal,
                aPainelTabulador,
                aPainelBd,
                aTipoDialogoBd,
                aValoresIdMestre,
                aPertinenciaBdMestre,
                aNomesCampoMestre,
                aNomesCampoDetalhe,
                aComparacoes,
                aNomesCampoMestreHeranca,
                aNomesCampoDetalheHeranca
            );
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    static public CCenarioBdEdicao criarCenario(
        CGlobal aGlobal,
        String aTitulo,
        CPainelBdCenarioEdicao aPainelBd,
        JTabbedPane aPainelTabPrincipal,
        int aTipoDialogoBd,
        int aValorIdMestre,
        CPersistenciaBdCenario aPertinenciaBdMestre,
        String aNomeCampoMestre,
        String aNomeCampoDetalhe) {
        //
        return criarCenario(
            aGlobal,
            aTitulo,
            aPainelBd,
            aPainelTabPrincipal,
            aTipoDialogoBd,
            aValorIdMestre,
            aPertinenciaBdMestre,
            aNomeCampoMestre,
            aNomeCampoDetalhe
        );
    }
}
